
export default {
	data(){
		return{
			leftWindowStyle:{},
			haseLeftWindow:false
		}
	},
	onShow() {
		this.leftWindowStyle=uni.getLeftWindowStyle();
		uni.setLeftWindowStyle({
			display:'none' 
		});
	},
	// #ifdef VUE2
	destroyed() {
		uni.setLeftWindowStyle(this.leftWindowStyle);
	},
	// #endif
	// #ifdef VUE3
	onUnmounted(){
		uni.setLeftWindowStyle(this.leftWindowStyle);
	},
	// #endif
	methods:{
		showLeftWindow(haseLeftWindow){
			this.haseLeftWindow=!haseLeftWindow
			if(!haseLeftWindow){
				uni.setLeftWindowStyle({
					display:'block' 
				});
				//uni.setLeftWindowStyle(this.leftWindowStyle);
			}else{
				uni.setLeftWindowStyle({
					display:'none' 
				});
			}			
		}
	}
}